package com.ggh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jj
 * @date 2019/10/15 9:38
 */
@Data
@TableName("with_draw")
public class WithDraw extends Model<WithDraw> {
    /**
     * id
     */
   @TableId(value = "id",type = IdType.AUTO)
   private int id;
    /**
     * 用户id
     */
   private int userid;
    /**
     * 绑定账户id
     */
   private int payid;
    /**
     * 提现账号
     */
   private String  number;
    /**
     * 账号类型
     */
    private int  type;
    /**
     * 账号姓名
     */
    private String userName;
    /**
     * 游戏账户余额
     */
    private float money;
    /**
     * 提现金额
     */
    private float txmoney;
    /**
     * 提现状态
     * 0未开始
     * 1进行中
     * 2成功
     * 3失败
     */
    private int status;
    /**
     * 创建时间
     */
    @TableField("creaty_time")
    private Date creatyTime;
    /**
     * 成功时间
     */
    @TableField("succee_time")
    private Date succeeTime;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
